﻿<%@ Page Language="C#" ValidateRequest="false" MasterPageFile="~/admin/admin_page.master" AutoEventWireup="true" CodeBehind="stencil_edit.aspx.cs" Inherits="YXShop.Web.admin.templates.stencil_edit" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../scripts/validate.js"></script>
    <script src="../scripts/public.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
    function getValue(value)
    {
        if(value!="") 
        {
            var oEditor = FCKeditorAPI.GetInstance("ctl00_workspace_txtContent");
            if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
            {
                oEditor.InsertHtml(value);
            }
            else
            {
                return false;
            }
        }
   }
  </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">模板管理
    <asp:Button ID="button6" runat="server" CssClass="inputbutton" onclick="LinkButton1_Click" Text="保  存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="returnLink" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">添加或编辑模&nbsp; 
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
     <table  class="page_toolbar" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
             <td style="width:14%; color:Red;border-bottom-width: thin;border-bottom-style: dotted;border-bottom-color: #CCCCCC;">特殊页面标签：</td>
             <td style="border-bottom-width: thin;border-bottom-style: dotted;border-bottom-color: #CCCCCC;">
                 <asp:DropDownList ID="ddlSpecialnessTag" runat="server">
                    <asp:ListItem Value="">=单页面标签=</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站名称#}">网站名称</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站标题#}">网站标题</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站头部#}">网站头部</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站底部#}">网站底部</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站描述#}">meta描述</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站关键字#}">meta关键字</asp:ListItem>
                </asp:DropDownList>
                <input id="Button4" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.getElementById('ctl00_workspace_ddlSpecialnessTag').value);" />
                <asp:DropDownList ID="ddlPathTag" runat="server">
                    <asp:ListItem Value="">=路径标签=</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站虚拟路径#}">网站虚拟路径</asp:ListItem>
                    <asp:ListItem Value="{#YXShopRivetTag*网站虚拟路径#}templates/yxshop_template/green">模板方案路径</asp:ListItem>
                </asp:DropDownList>
                <span id="adress"></span>
                <input id="Button1" style="width:35px;" type="button" value="插入" onclick="javascript:getValue(document.getElementById('ctl00_workspace_ddlPathTag').value);" />
                <input id="Button5" style="width:100px;color:Red;" type="button" value="系统标签(内置)" onclick="javascript:show('systemlabel',document.getElementById('adress'),'自定义标签列表(点击选择)',600,310);" />
                <input id="sbutton4" style="width:80px;color:Red;" type="button" value="自定义标签" onclick="javascript:show('definlabel',document.getElementById('adress'),'自定义标签列表(点击选择)',600,310);" />
                <input id="Button3" style="width:80px;color:Red;" type="button" value="自由标签" onclick="javascript:show('freelabel',document.getElementById('adress'),'自定义标签列表(点击选择)',600,310);" />
             </td>
         </tr>
         <tr>
             <td colspan="2">
                 </td>
         </tr>
         <tr>
             <td colspan="2" style="border:solid 1px #EEEEEE">
                 <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="450px"   BasePath="~/controls/fckeditor/">
                    </FCKeditorV2:FCKeditor>
            </td>
         </tr>
    </table>
</asp:Content>
<asp:Content ContentPlaceHolderID="pagebottom" runat="server" ID="ContentBottom">
    <asp:Button ID="button2" runat="server" CssClass="inputbutton" onclick="LinkButton1_Click" Text="保  存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="HyperLink1" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回列表</asp:HyperLink>
</asp:Content>